import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 细纱翻改
 * */
export const productionPrdNoticeMachineChangeCreate = (data) => postRequest('/production/prd-notice-machine-change/create', data);
export const productionPrdNoticeMachineChangeUpdate = (data) => putRequest('/production/prd-notice-machine-change/update', data);
export const productionPrdNoticeMachineChangeDelete = (params) => deleteRequest('/production/prd-notice-machine-change/delete', params);
export const productionPrdNoticeMachineChangeGet = (params) => getRequest('/production/prd-notice-machine-change/get', params);
export const productionPrdNoticeMachineChangePage = (params) => getRequest('/production/prd-notice-machine-change/page', params);
export const productionPrdNoticeMachineChangePostPage = (params) => postRequest('/production/prd-notice-machine-change/post-page', params);
export const productionMachineShiftProductOutputUpdateWaitOpen = (params) => postRequest('/production/machine-shift-product-output/updateWaitOpen', params);
export const productionMachineShiftProductOutputUpdateOperator = (params) => postRequest('/production/machine-shift-product-output/update-operator', params);

// 称重获取机台任务的接口(根据机台的了机时间降序等处理)
export const productionPrdNoticeMachineChangeCzPage = (params) => getRequest('/production/prd-notice-machine-change/cz-page', params);

export const productionPrdNoticeMachineChangeExportExcel = (params) => getRequest('/production/prd-notice-machine-change/export-excel', params);
// 查询通知单下的机台
export const productionSpunYarnBomGetByProductionPlanId = (params) => getRequest('/production/spun-yarn-bom/get-by-production-plan-id', params);

export const productionPrdMachinePageByPrdNotice = (params) => getRequest('/production/prd-machine/page-by-prd-notice', params);
export const productionPrdNoticeMachineChangeUpdateStatus = (params) => postRequest('/production/prd-notice-machine-change/update-status', params);
export const productionPrdNoticeMachineChangeCompleteRenovation = (params) => postRequest('/production/prd-notice-machine-change/complete-renovation', params);
export const productionPrdNoticeMachineChangeClearRenovation = (data) => postRequest('/production/prd-notice-machine-change/clear-renovation', data);
/**
 * 工序通知单
 * @params {processCode}
 * */
export const productionProcessPrdNoticePage = (params) => getRequest('/production/process/prd-notice/page', params);

export const productionPrdNoticeMachineChangeGetStateCount = (params) => postRequest('/production/prd-notice-machine-change/get-state-count', params);

// 批量取消翻改、开台、了机
export const productionPrdNoticeMachineOpeningBatchClearOpening = (params) => postRequest('/production/prd-notice-machine-opening/batch-clear-opening', params);
export const productionPrdNoticeMachineCloseBatchClearClose = (params) => postRequest('/production/prd-notice-machine-close/batch-clear-close', params);
export const productionPrdNoticeMachineChangeBatchClearRenovation = (params) => postRequest('/production/prd-notice-machine-change/batch-clear-renovation', params);
